#Boa:Dialog:About

import wx
import wx.lib.hyperlink

def create(parent):
    return About(parent)

[wxID_ABOUT, wxID_ABOUTHYPERLINKCTRL1, wxID_ABOUTHYPERLINKCTRL2, 
 wxID_ABOUTOKBUTTOM, wxID_ABOUTSTATICBITMAP1, wxID_ABOUTSTATICBOX1, 
 wxID_ABOUTSTATICLINE1, wxID_ABOUTSTATICLINE2, wxID_ABOUTSTATICTEXT1, 
 wxID_ABOUTSTATICTEXT11, wxID_ABOUTSTATICTEXT12, wxID_ABOUTTEXTCTRL1, 
] = [wx.NewId() for _init_ctrls in range(12)]

class About(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_ABOUT, name=u'About', parent=prnt,
              pos=wx.Point(660, 194), size=wx.Size(417, 459),
              style=wx.DEFAULT_DIALOG_STYLE, title=u'About')
        self.SetClientSize(wx.Size(401, 421))
        self.SetBackgroundColour(wx.Colour(255, 255, 255))
        self.Center(wx.BOTH)

        self.staticLine1 = wx.StaticLine(id=wxID_ABOUTSTATICLINE1,
              name='staticLine1', parent=self, pos=wx.Point(8, 92),
              size=wx.Size(384, 2), style=0)

        self.staticLine2 = wx.StaticLine(id=wxID_ABOUTSTATICLINE2,
              name='staticLine2', parent=self, pos=wx.Point(8, 346),
              size=wx.Size(384, 2), style=0)

        self.staticText1 = wx.StaticText(id=wxID_ABOUTSTATICTEXT1,
              label=u"Cristina's Hair - Beta v0.1", name='staticText1',
              parent=self, pos=wx.Point(180, 16), size=wx.Size(208, 19),
              style=0)
        self.staticText1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.OKButtom = wx.Button(id=wxID_ABOUTOKBUTTOM, label=u'OK',
              name=u'OKButtom', parent=self, pos=wx.Point(163, 368),
              size=wx.Size(75, 31), style=0)
        self.OKButtom.Center(wx.HORIZONTAL)
        self.OKButtom.Bind(wx.EVT_BUTTON, self.OnOKButtomButton,
              id=wxID_ABOUTOKBUTTOM)

        self.staticBitmap1 = wx.StaticBitmap(bitmap=wx.Bitmap(u'Img/logoMvr.jpg',
              wx.BITMAP_TYPE_JPEG), id=wxID_ABOUTSTATICBITMAP1,
              name='staticBitmap1', parent=self, pos=wx.Point(8, 8),
              size=wx.Size(160, 68), style=0)

        self.staticText11 = wx.StaticText(id=wxID_ABOUTSTATICTEXT11,
              label=u'Autor:', name='staticText11', parent=self,
              pos=wx.Point(184, 48), size=wx.Size(43, 16), style=0)
        self.staticText11.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.staticText12 = wx.StaticText(id=wxID_ABOUTSTATICTEXT12,
              label=u'MVR Main Team', name='staticText12', parent=self,
              pos=wx.Point(240, 48), size=wx.Size(94, 16), style=0)
        self.staticText12.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.staticBox1 = wx.StaticBox(id=wxID_ABOUTSTATICBOX1,
              label=u'MVR Private License', name='staticBox1', parent=self,
              pos=wx.Point(28, 104), size=wx.Size(344, 224), style=0)
        self.staticBox1.Center(wx.HORIZONTAL)

        self.textCtrl1 = wx.TextCtrl(id=wxID_ABOUTTEXTCTRL1, name='textCtrl1',
              parent=self, pos=wx.Point(56, 128), size=wx.Size(288, 112),
              style=wx.NO_BORDER | wx.TE_MULTILINE | wx.TE_LINEWRAP | wx.TE_WORDWRAP,
              value=u'         Este programa \xe9 de uso particular do cliente "Cristina\'s Hair sal\xe3o de beleza" (CNPJ: 14.241.321/0001-92). \xc9 estritamente proibido a redistribui\xe7\xe3o e/ou modifica\xe7\xe3o sem autoriza\xe7\xe3o pr\xe9via da associa\xe7\xe3o "MVR Solu\xe7\xf5es em Sistemas de informa\xe7\xe3o" para qualquer vers\xe3o do mesmo (com ou sem licensa).')
        self.textCtrl1.SetEditable(False)
        self.textCtrl1.Center(wx.HORIZONTAL)

        self.hyperLinkCtrl1 = wx.lib.agw.hyperlink.HyperLinkCtrl(id=wxID_ABOUTHYPERLINKCTRL1,
              label=u'E-mail: mvrsistemas@gmail.com', name='hyperLinkCtrl1',
              parent=self, pos=wx.Point(56, 256), size=wx.Size(152, 13),
              style=0)

        self.hyperLinkCtrl2 = wx.lib.agw.hyperlink.HyperLinkCtrl(id=wxID_ABOUTHYPERLINKCTRL2,
              label=u'Homepage: http://www.mvrsistemas.com.br/',
              name='hyperLinkCtrl2', parent=self, pos=wx.Point(56, 280),
              size=wx.Size(219, 13), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)
        self.hyperLinkCtrl1.SetURL("mailto:mvrsistemas@gmail.com")
        self.hyperLinkCtrl2.SetURL("http://www.mvrsistemas.com.br/")
        
    def OnOKButtomButton(self, event):
        self.Close()
